package com.powernode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.powernode.domain.Basket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
*内容: 
*作者: cy
*/
@Mapper
public interface BasketMapper extends BaseMapper<Basket> {

    @Select("SELECT  IFNULL(sum(basket_count),0)   FROM `basket` where user_id = #{value}")
    Integer selectUserCount(String openId);
}